{#**
*
* 功能描述（食品页模板）
*
* @author suoya <jlusuoya@gmail.com>
* @version 1
*#}

{#include file="header.tpl" title="商品列表" menuIdx=1 headImg="cate"#}
{#include file="define.tpl" scope=parent#}

<div class="block box" >
    <div id="ur_here">
        当前位置: <a href="index.php">首页</a> <code>/</code> 订购中心</div>
</div>
<div class="block clearfix">
    <div class="AreaR AreaR_pd_box">
        <div class="box">
            <div class="box_1">
                <div class="goodsList">
                    {#foreach $goodsList as $item #}
                        <ul class="clearfix">
                            <li class="thumb"><a href="index.php?action=food.detail&id={#$item['id']#}"><img src="data/cake/cake_{#$item['id']#}.jpg" alt="{#$item['name']#}" /></a></li>
                            <li class="goodsName">
                                <div class="c_content">
                                    <a href="index.php?action=food.detail&id={#$item['id']#}" class="f6 pd_name">{#$item['name']#}</a>
                                    <br />
                                    <p style="margin-top: 10px;">{#$cake_type[$item['type']]#} {#$cake_type2[$item['type2']]#}</p>
                                    <p class="goods_brief">{#foreach $item['introduce'] as $ck => $cl #}{#if $ck != 0#}<br/>{#/if#}&nbsp;&nbsp;&nbsp;&nbsp;{#$cl#}{#/foreach#}</p><br />
                                    <a href="index.php?action=food.detail&id={#$item['id']#}" class="pd_more">>> 详情</a>
                                </div>
                                <div class="action">
                                    <!--<b><span>D-01 </span></b>-->
                                    <span class="tips"></span><br/>
                                    <span class="tips"></span><br/>
                                    <div class="add_bot">
                                        <span class="one_pound_price">
                                            {#if $item['discount'] == 1 #}
                                                ￥{#round($item['price'] * $item['discount'], 2)#}/{#$item['unit']#}</span>
                                            {#else#}
                                            原价<span style="text-decoration:line-through">￥{#$item['price']#}/{#$item['unit']#}</span></span>
                                            <span class="one_pound_price">现价￥{#round($item['price'] * $item['discount'], 2)#}/{#$item['unit']#}</span>
                                        {#/if#}
                                        <a href="javascript:addToCart({#$item['id']#})"><img src="images/bnt_cart.gif"></a>
                                        <span style="line-height: 20px;"><a class="good_favorite" href="index.php?action=favorite.add&good_id={#$item['id']#}" target="_blank">加入收藏</a></span>
                                    </div>
                                </div>
                            </li>
                        </ul>
                    {#/foreach#}

                </div>
            </div>
        </div>
        <script type="text/javascript">
            window.onload = function()
            {
                fixpng();
            }
            var btn_buy = "购买";
            var is_cancel = "取消";
            var select_spe = "请选择商品属性";
        </script>  
        {#include file="paging_bar.tpl"#}
    </div>
</div>

{#include file="footer.tpl"#}
